package org.hoyi.microservice.api.model;

/**
 * 接口参数
 * @author sam
 *
 */
public class APIPara {
	/**
	 * 参数的名称.
	 */
	public String Name = "";
	/**
	 * 参数名的说明，也就是中文名.
	 */
	public String Comment = "";
	/**
	 * 接口的类型，例如INT,DECIMAL,BOOLEAN,STRING等.
	 */
	public String CHARType = "String";
	
	/**
	 * 是否不能为空
	 */
	public boolean Required = false;
	
	/**
	 * 参数的说明.
	 */
	public String Notes = "";
	
	public  APIPara(String _comment,String _name, String _type) {
		Init(_comment, _name, _type, "", false);
	}
	
	public  APIPara(String _comment,String _name, String _type, String _notes) {
		Init(_comment, _name, _type, _notes, false);
	}
	
	public  APIPara(String _comment,String _name, String _type, String _notes, boolean _required) {
		Init(_comment, _name, _type, _notes, _required);
	}
	
	public void Init(String _comment,String _name, String _type, String _notes, boolean _required) {
		Comment = _comment;
		Name = _name;
		CHARType = _type;
		Notes = _notes;
		Required = _required;
	}
	
}
